extends Area2D

const speed:=300
var damage=20

func _ready() -> void:
    set_as_top_level(true)

func _physics_process(delta: float) -> void:
    position+=(Vector2.RIGHT).rotated(rotation)*speed*delta

func _on_visible_on_screen_enabler_2d_screen_exited() -> void:
    queue_free()
